package com.alfa.myworld.client;

import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Panel;

public class MapWidgetSingleton {
	
	private static MapWidget mapInstance = null;
	
	private MapWidgetSingleton(){
	}
	
	public static MapWidget getInstance(){
		if(mapInstance == null){
			Panel panel = new FlowPanel(); 
			new MapLoader(panel); 
			panel.asWidget();
		}
		return mapInstance;
	}

}
